﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013D1 RID: 5073
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyBuildDiyScRsp : IMessage<TrainPartyBuildDiyScRsp>, IMessage, IEquatable<TrainPartyBuildDiyScRsp>, IDeepCloneable<TrainPartyBuildDiyScRsp>, IBufferMessage
	{
		// Token: 0x17003FF8 RID: 16376
		// (get) Token: 0x0600E331 RID: 58161 RVA: 0x0025F797 File Offset: 0x0025D997
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyBuildDiyScRsp> Parser
		{
			get
			{
				return TrainPartyBuildDiyScRsp._parser;
			}
		}

		// Token: 0x17003FF9 RID: 16377
		// (get) Token: 0x0600E332 RID: 58162 RVA: 0x0025F79E File Offset: 0x0025D99E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyBuildDiyScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003FFA RID: 16378
		// (get) Token: 0x0600E333 RID: 58163 RVA: 0x0025F7B0 File Offset: 0x0025D9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyBuildDiyScRsp.Descriptor;
			}
		}

		// Token: 0x0600E334 RID: 58164 RVA: 0x0025F7B7 File Offset: 0x0025D9B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyScRsp()
		{
		}

		// Token: 0x0600E335 RID: 58165 RVA: 0x0025F7CC File Offset: 0x0025D9CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyScRsp(TrainPartyBuildDiyScRsp other) : this()
		{
			this.hEMODCFENHP_ = other.hEMODCFENHP_;
			this.dynamicInfo_ = other.dynamicInfo_.Clone();
			this.retcode_ = other.retcode_;
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E336 RID: 58166 RVA: 0x0025F825 File Offset: 0x0025DA25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildDiyScRsp Clone()
		{
			return new TrainPartyBuildDiyScRsp(this);
		}

		// Token: 0x17003FFB RID: 16379
		// (get) Token: 0x0600E337 RID: 58167 RVA: 0x0025F82D File Offset: 0x0025DA2D
		// (set) Token: 0x0600E338 RID: 58168 RVA: 0x0025F835 File Offset: 0x0025DA35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HEMODCFENHP
		{
			get
			{
				return this.hEMODCFENHP_;
			}
			set
			{
				this.hEMODCFENHP_ = value;
			}
		}

		// Token: 0x17003FFC RID: 16380
		// (get) Token: 0x0600E339 RID: 58169 RVA: 0x0025F83E File Offset: 0x0025DA3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AreaDynamicInfo> DynamicInfo
		{
			get
			{
				return this.dynamicInfo_;
			}
		}

		// Token: 0x17003FFD RID: 16381
		// (get) Token: 0x0600E33A RID: 58170 RVA: 0x0025F846 File Offset: 0x0025DA46
		// (set) Token: 0x0600E33B RID: 58171 RVA: 0x0025F84E File Offset: 0x0025DA4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003FFE RID: 16382
		// (get) Token: 0x0600E33C RID: 58172 RVA: 0x0025F857 File Offset: 0x0025DA57
		// (set) Token: 0x0600E33D RID: 58173 RVA: 0x0025F85F File Offset: 0x0025DA5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x0600E33E RID: 58174 RVA: 0x0025F868 File Offset: 0x0025DA68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyBuildDiyScRsp);
		}

		// Token: 0x0600E33F RID: 58175 RVA: 0x0025F878 File Offset: 0x0025DA78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyBuildDiyScRsp other)
		{
			return other != null && (other == this || (this.HEMODCFENHP == other.HEMODCFENHP && this.dynamicInfo_.Equals(other.dynamicInfo_) && this.Retcode == other.Retcode && this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E340 RID: 58176 RVA: 0x0025F8E8 File Offset: 0x0025DAE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.HEMODCFENHP)
			{
				num ^= this.HEMODCFENHP.GetHashCode();
			}
			num ^= this.dynamicInfo_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E341 RID: 58177 RVA: 0x0025F967 File Offset: 0x0025DB67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E342 RID: 58178 RVA: 0x0025F96F File Offset: 0x0025DB6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E343 RID: 58179 RVA: 0x0025F978 File Offset: 0x0025DB78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AreaId);
			}
			this.dynamicInfo_.WriteTo(ref output, TrainPartyBuildDiyScRsp._repeated_dynamicInfo_codec);
			if (this.HEMODCFENHP)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.HEMODCFENHP);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E344 RID: 58180 RVA: 0x0025FA00 File Offset: 0x0025DC00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.HEMODCFENHP)
			{
				num += 2;
			}
			num += this.dynamicInfo_.CalculateSize(TrainPartyBuildDiyScRsp._repeated_dynamicInfo_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E345 RID: 58181 RVA: 0x0025FA78 File Offset: 0x0025DC78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyBuildDiyScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.HEMODCFENHP)
			{
				this.HEMODCFENHP = other.HEMODCFENHP;
			}
			this.dynamicInfo_.Add(other.dynamicInfo_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E346 RID: 58182 RVA: 0x0025FAED File Offset: 0x0025DCED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E347 RID: 58183 RVA: 0x0025FAF8 File Offset: 0x0025DCF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						this.dynamicInfo_.AddEntriesFrom(ref input, TrainPartyBuildDiyScRsp._repeated_dynamicInfo_codec);
						continue;
					}
					if (num == 88U)
					{
						this.HEMODCFENHP = input.ReadBool();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040059E7 RID: 23015
		private static readonly MessageParser<TrainPartyBuildDiyScRsp> _parser = new MessageParser<TrainPartyBuildDiyScRsp>(() => new TrainPartyBuildDiyScRsp());

		// Token: 0x040059E8 RID: 23016
		private UnknownFieldSet _unknownFields;

		// Token: 0x040059E9 RID: 23017
		public const int HEMODCFENHPFieldNumber = 11;

		// Token: 0x040059EA RID: 23018
		private bool hEMODCFENHP_;

		// Token: 0x040059EB RID: 23019
		public const int DynamicInfoFieldNumber = 9;

		// Token: 0x040059EC RID: 23020
		private static readonly FieldCodec<AreaDynamicInfo> _repeated_dynamicInfo_codec = FieldCodec.ForMessage<AreaDynamicInfo>(74U, AreaDynamicInfo.Parser);

		// Token: 0x040059ED RID: 23021
		private readonly RepeatedField<AreaDynamicInfo> dynamicInfo_ = new RepeatedField<AreaDynamicInfo>();

		// Token: 0x040059EE RID: 23022
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040059EF RID: 23023
		private uint retcode_;

		// Token: 0x040059F0 RID: 23024
		public const int AreaIdFieldNumber = 7;

		// Token: 0x040059F1 RID: 23025
		private uint areaId_;
	}
}
